
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item ">
            <label class="layui-form-label required">选择景点</label>
            <div class="layui-input-block">
                <select name="store_id" id="storeId"  lay-filter="buildingFilter" data-select="{:url('management.store/getstore')}" data-fields="store_id,store_name"  data-value="{$row.store_id}"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">门票名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入品牌名称" value="{$row.title}">
            </div>
        </div>
        <div class="layui-form-item">
                    <label class="layui-form-label ">门票图</label>
                    <div class="layui-input-block layuimini-upload">
                        <input name="thumb" class="layui-input layui-col-xs6"  placeholder="请上传门票图" value="{$row.thumb|default=''}">
                        <div class="layuimini-upload-btn">
                            <span><a class="layui-btn layui-btn-sm" data-upload="thumb" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                          <!--   <span><a class="layui-btn layui-btn-normal layui-btn-sm" id="select_cover_picture" data-upload-select="thumb" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span> -->
                        </div>
                    </div>
            </div>
           <div class="layui-form-item">
            <label class="layui-form-label required">门票类型</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="1" title="散客"     {if condition="$row.type==1"} checked{/if} lay-filter="ticket_type">
                <input type="radio" name="type" value="2" title="家庭套票" {if condition="$row.type==2"} checked{/if} lay-filter="ticket_type">
                 <input type="radio" name="type" value="3" title="年卡套票"{if condition="$row.type==3"} checked{/if} lay-filter="ticket_type">
                <input type="radio" name="type" value="4" title="团体套票" {if condition="$row.type==4"} checked{/if} lay-filter="ticket_type">
            </div>
        </div>
      <!--   <div class="layui-form-item">
            <label class="layui-form-label required">购买须知</label>
            <div class="layui-input-block layuimini-upload">
                <input name="purchase" class="layui-input layui-col-xs6"   placeholder="请上传购买须知" value="{$row.purchase}" id="picture-purchase">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn layui-btn-sm" data-upload="purchase" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal layui-btn-sm" id="select_purchase" data-upload-select="purchase" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
            <div class="layui-form-mid layui-word-aux">拖拽可以改变图片顺序</div> 
        </div> -->
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<!-- <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="__STATIC__/admin/price-calendar/jquery-1.12.4.min.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> -->

<script type="text/javascript">

// $(function(){
    // $("#laypic1").sortable().bind('sortupdate',function () {
    //     var sort = $("#laypic1").sortable("toArray");
    //     /*for(var i=0;i<sort.length;i++){
    //         $(".oid"+sort[i]).html(i+1);
    //     }*/
    //     sorts();
    // });
// });

/*排序*/
// function sorts() {
//     var sort = new Array();
//     $('#laypic1').find('.pic').each(function(index,element){
//         sort[index] = element.id;
//         //$(".oid"+element.id).html(index+1);
//     });
//     $("#picture").val(sort.join('|'));
//     // console.log(sort)
//     // $.post("{:url('sortPics')}",{
//     //     sort:sort
//     // },function (data) {
//     // });
// }


</script>